package artid.com.arttogoa.parser;

import java.io.Serializable;
import org.json.JSONObject;

/**
 * 
*    
* 项目名称：ArtworkArtA   
* 类名称   ：OneStateParser   
* 类描述   ：只返回一个成功失败的实体类+解析   
* 创建人   ：耿卫斌   
* 创建时间：2016-7-29 下午2:53:05   
*
 */
public class OneStateParser extends AppItem implements Serializable{
	private static final long serialVersionUID = 1L;
	private String state;
	@Override
	public void parse(JSONObject obj) {
		// TODO Auto-generated method stub
		if (null == obj) {
			return;
		}
		state = obj.optString("state");
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	public OneStateParser() {
		super();
	}
	public OneStateParser(String state) {
		super();
		this.state = state;
	}
	@Override
	public String toString() {
		return "OneStateParser [state=" + state + "]";
	}
}
